#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QObject>
#include <QLayout>
#include <QLabel>
#include <QPushButton>
#include "./model/data.h"

using data::ChatSessionInfo;

class AvatarItem : public QWidget
{
    Q_OBJECT
public:
    AvatarItem(const QIcon& avatar, const QString& name);
    void setClicked(std::function<void(void)> slotFunc);
private:
    QPushButton* avatarBtn;
    QLabel* nameLabel;
};


class SessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    explicit SessionDetailWidget(const ChatSessionInfo& chatSessionInfo);
signals:

private:
    const ChatSessionInfo& chatSessionInfo;

};

#endif // SESSIONDETAILWIDGET_H
